var html = "<%= j(render('share_button', doc: @doc)) %>";
$(".doc-share-button-box").replaceWith(html);